#pragma once

#include <stdint.h>
#include <../Protocol/ProtocolBase.h>


enum class EMessageID :uint16_t {
	undefined,
	online
};

struct TExtendHead
{
	uint16_t MsgID;
};

struct TMyMetaData: public protocol::TmetaData
{
public:
	TExtendHead* extendHead() {
		return (TExtendHead*)this->extendHeadData.data();
	};
};

class TlogicManage {
public:
	static void processRecvPackge(protocol::TprotocolBaseClass* avProtocol, protocol::TmetaData* avData);
	static void sendOnlineData(protocol::TprotocolBaseClass* avProtocol);
	static void packSendData(protocol::TprotocolBaseClass* avProtocol, EMessageID avMsgID, std::vector<uint8_t> avSendData);
};